package com._21cn.cron.web;

import com._21cn.cron.runner.StaticFileRunner;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping({"/gen"})
public class GenFileController
{

    @Autowired
    private StaticFileRunner staticFileRunner;

    @RequestMapping({"/xywyXML"})
    public void xywyXMl(HttpServletRequest request, HttpServletResponse response, ModelMap model)
    {
        this.staticFileRunner.generateXywyXML();
    }

    @RequestMapping({"/xywyRSS"})
    public void xywyRSS(HttpServletRequest request, HttpServletResponse response, ModelMap model) {
        this.staticFileRunner.generateXywyRSS();
    }
}